﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>TrafficLight: StateForge::Examples::TrafficLight::Light Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                TrafficLight: StateForge::Examples::TrafficLight::Light Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_traffic_light.html">TrafficLight</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html">Light</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::TrafficLight::Light Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::TrafficLight::Light" -->
<p>The <a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html" title="The Light class knows how to switch on and off the green, yellow and red lights.">Light</a> class knows how to switch on and off the green, yellow and red lights.  
 <a href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#details">More...</a></p>

<p><a href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#abf0d21972ee5013cde3c36e7c20c3a0f">Light</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#aee97c76dadbdb4737afc1f12f4193362">TurnOnGreen</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#a06d63e0a224594a779ce677b3bda2b12">TurnOffGreen</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#ab8948bf092d181992469568ae5f5626b">TurnOnYellow</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#abe4b68d38f6c669c4d71262211bc0b4f">TurnOffYellow</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#a08ebe49adfb8e1dac642178bd1ff254c">TurnOnRed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#a1090fdb9d497f6ecfe6ab46c9333d0bf">TurnOffRed</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#aa813615d941d7db34533f1e9f301990b">TimerRedDuration</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Red timer duration in milliseconds.  <a href="#aa813615d941d7db34533f1e9f301990b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#af04ebbcbfec99e018181db290aa39406">TimerYellowDuration</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Yellow timer duration in milliseconds.  <a href="#af04ebbcbfec99e018181db290aa39406"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#abc1f28d35864f18919a8236da51a06fc">TimerGreenDuration</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Green timer duration in milliseconds.  <a href="#abc1f28d35864f18919a8236da51a06fc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#a42bf05777b6870d6ebd3128af130fae9">TimerMaxDuration</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum operating duration in milliseconds.  <a href="#a42bf05777b6870d6ebd3128af130fae9"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html" title="The Light class knows how to switch on and off the green, yellow and red lights.">Light</a> class knows how to switch on and off the green, yellow and red lights. </p>

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00012">12</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abf0d21972ee5013cde3c36e7c20c3a0f"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::Light" ref="abf0d21972ee5013cde3c36e7c20c3a0f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::TrafficLight::Light::Light </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00034">34</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#aa813615d941d7db34533f1e9f301990b" title="Red timer duration in milliseconds.">TimerRedDuration</a> = 500; <span class="comment">/* msec */</span>
            <a class="code" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#af04ebbcbfec99e018181db290aa39406" title="Yellow timer duration in milliseconds.">TimerYellowDuration</a> = 500;<span class="comment">/* msec */</span>
            <a class="code" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#abc1f28d35864f18919a8236da51a06fc" title="Green timer duration in milliseconds.">TimerGreenDuration</a> = 500;<span class="comment">/* msec */</span>

            <a class="code" href="class_state_forge_1_1_examples_1_1_traffic_light_1_1_light.html#a42bf05777b6870d6ebd3128af130fae9" title="Maximum operating duration in milliseconds.">TimerMaxDuration</a> = 1900; <span class="comment">/* msec */</span>
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a06d63e0a224594a779ce677b3bda2b12"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOffGreen" ref="a06d63e0a224594a779ce677b3bda2b12" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOffGreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00048">48</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOffGreen&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a1090fdb9d497f6ecfe6ab46c9333d0bf"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOffRed" ref="a1090fdb9d497f6ecfe6ab46c9333d0bf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOffRed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00067">67</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOffRed&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="abe4b68d38f6c669c4d71262211bc0b4f"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOffYellow" ref="abe4b68d38f6c669c4d71262211bc0b4f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOffYellow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00058">58</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOffYellow&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aee97c76dadbdb4737afc1f12f4193362"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOnGreen" ref="aee97c76dadbdb4737afc1f12f4193362" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOnGreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00043">43</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOnGreen&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a08ebe49adfb8e1dac642178bd1ff254c"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOnRed" ref="a08ebe49adfb8e1dac642178bd1ff254c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOnRed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00062">62</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOnRed&quot;</span>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ab8948bf092d181992469568ae5f5626b"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TurnOnYellow" ref="ab8948bf092d181992469568ae5f5626b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::TrafficLight::Light::TurnOnYellow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00053">53</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Console.WriteLine(<span class="stringliteral">&quot;TurnOnYellow&quot;</span>);
        }
</pre></div>
</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="abc1f28d35864f18919a8236da51a06fc"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TimerGreenDuration" ref="abc1f28d35864f18919a8236da51a06fc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long StateForge::Examples::TrafficLight::Light::TimerGreenDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Green timer duration in milliseconds. </p>

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00027">27</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a42bf05777b6870d6ebd3128af130fae9"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TimerMaxDuration" ref="a42bf05777b6870d6ebd3128af130fae9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long StateForge::Examples::TrafficLight::Light::TimerMaxDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maximum operating duration in milliseconds. </p>

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00032">32</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa813615d941d7db34533f1e9f301990b"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TimerRedDuration" ref="aa813615d941d7db34533f1e9f301990b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long StateForge::Examples::TrafficLight::Light::TimerRedDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Red timer duration in milliseconds. </p>

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00017">17</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af04ebbcbfec99e018181db290aa39406"></a><!-- doxytag: member="StateForge::Examples::TrafficLight::Light::TimerYellowDuration" ref="af04ebbcbfec99e018181db290aa39406" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long StateForge::Examples::TrafficLight::Light::TimerYellowDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Yellow timer duration in milliseconds. </p>

<p>Definition at line <a class="el" href="_traffic_light_8cs_source.html#l00022">22</a> of file <a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_traffic_light_8cs_source.html">TrafficLight.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
